package org.dromara.germbank.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.dromara.germbank.domain.BusPartnerPartner;
import org.hibernate.validator.constraints.Length;



/**
 * 合作伙伴档案表
 * 数据库表名：bus_partner_partner
 */
@Data
@AutoMapper(target = BusPartnerPartner.class, reverseConvertGenerate = false)
public class BusPartnerPartnerBo {


    @TableField("donor_id")
    @NotNull(message = "捐赠者ID不能为空")
    @Schema(description = "捐赠者ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long donorId;

    @TableField("first_name")
    @NotBlank(message = "法定名字不能为空")
    @Size(max = 50, message = "法定名字长度不能超过50")
    @Length(max = 50, message = "法定名字长度不能超过50")
    @Schema(description = "法定名字", requiredMode = Schema.RequiredMode.REQUIRED)
    private String firstName;

    @TableField("last_name")
    @NotBlank(message = "法定姓氏不能为空")
    @Size(max = 50, message = "法定姓氏长度不能超过50")
    @Length(max = 50, message = "法定姓氏长度不能超过50")
    @Schema(description = "法定姓氏", requiredMode = Schema.RequiredMode.REQUIRED)
    private String lastName;

    @TableField("country")
    @NotBlank(message = "国家不能为空")
    @Size(max = 50, message = "国家长度不能超过50")
    @Length(max = 50, message = "国家长度不能超过50")
    @Schema(description = "国家", requiredMode = Schema.RequiredMode.REQUIRED)
    private String country;

    @TableField("city")
    @NotBlank(message = "城市不能为空")
    @Size(max = 50, message = "城市长度不能超过50")
    @Length(max = 50, message = "城市长度不能超过50")
    @Schema(description = "城市", requiredMode = Schema.RequiredMode.REQUIRED)
    private String city;

    @TableField("state")
    @Size(max = 50, message = "州/省长度不能超过50")
    @Length(max = 50, message = "州/省长度不能超过50")
    @Schema(description = "州/省")
    private String state;

    @TableField("postal_code")
    @Size(max = 20, message = "邮政编码长度不能超过20")
    @Length(max = 20, message = "邮政编码长度不能超过20")
    @Schema(description = "邮政编码")
    private String postalCode;

    @TableField("street")
    @Size(max = 200, message = "街道地址长度不能超过200")
    @Length(max = 200, message = "街道地址长度不能超过200")
    @Schema(description = "街道地址")
    private String street;

    @TableField("clinic_name")
    @Size(max = 100, message = "IVF诊所/机构名称长度不能超过100")
    @Length(max = 100, message = "IVF诊所/机构名称长度不能超过100")
    @Schema(description = "IVF诊所/机构名称")
    private String clinicName;

    @TableField("has_egg_bank")
    @Schema(description = "是否拥有内部卵子库：0-否 1-是")
    private Integer hasEggBank;

    @TableField("coop_egg_bank")
    @Schema(description = "目前是否与某卵子库有合作：0-否 1-是")
    private Integer coopEggBank;

    @TableField("leave_msg")
    @Schema(description = "您的留言")
    private String leaveMsg;


}
